package com.cxria.shiro.enums;

public enum ShiroStatusCodeEnum {

	NORMAL("0000"),
	USER_NOT_LOGIN("1001"),
	USER_ROLE_ERROR("1002"),
	USER_AUTHORITY_ERROR("1003"),
	USER_INCORRECT_CREDENTIALS_ERROR("1004"),
	USER_IS_NOT_DELETE("1005"),
	ROLE_IS_NOT_DELETE("1006"),
	DATA_ALREADY_EXISTS_ERROR("2001"),
	DATA_SAVE_ERROR("2002"),
	DATA_VIOLATION_ERROR("2003"),
	UNKNOWN_ERROR("9999");

	private String str;

	private ShiroStatusCodeEnum(String str) {
		this.str = str;
	}

	@Override
	public String toString() {
		return String.valueOf(this.str);
	}

}
